#!/usr/bin/env bash

source ~/.profile
mvn clean package -U -Dmaven.test.skip=true

scp -P 22 -r finance-api/target/*.jar root@192.168.3.108:/root/har-finance/api/finance-api.jar
ssh -p 22 root@192.168.3.108 'cd /root/har-finance/api/ && sh restart.sh'